﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DeveloperSite.Master" AutoEventWireup="true" 
    CodeBehind="AddOutputIndicator.aspx.cs" Inherits="Amkeni_System.CO.Edit.AddOutputIndicator" %>

<%@ Register Assembly="CustomDropDownList" Namespace="CustomDropDownList" TagPrefix="ddl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="programme_output" 
        Select="it.[output_id]">
    </asp:EntityDataSource>

    <asp:Label ID="error" runat="server" Visible="false"></asp:Label>
    <br />
    <asp:Label ID="Label3" runat="server" Text="ADD PROGRAMME OUTPUT INDICATOR" CssClass="ContentHead"></asp:Label>
    <br />
    
    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableCell style="padding-top:2em;">
                <asp:Label ID="Label4" runat="server" Text="Programme Output"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:2em;">
                <ddl:CustomDropDownList ID="OutputList" runat="server" 
                    DataSourceID="EntityDataSource1" DataTextField="output_id" 
                    DataValueField="output_id">
                </ddl:CustomDropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em; padding-right:5px;">
                <asp:Label ID="Label2" runat="server" Text="Output Indicator ID"></asp:Label>
                <br />
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="IndicatorIDTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="*" ForeColor="Red" ControlToValidate="IndicatorIDTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label1" runat="server" Text="Output Indicator"></asp:Label>
                <br />
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="IndicatorTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine" 
                        CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="IndicatorTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label5" runat="server" Text="Baseline"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="BaselineTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="BaselineTextbox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label6" runat="server" Text="Target"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="TargetTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="TargetTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label7" runat="server" Text="Data Source"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="DataSourceTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="DataSourceTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label8" runat="server" Text="Method of Collection"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="MethodOfCollectionTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="MethodOfCollectionTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label9" runat="server" Text="Collection Tools"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="CollectionToolsTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="CollectionToolsTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label10" runat="server" Text="Assumptions and Risks"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="AssumptionsAndRisksTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="AssumptionsAndRisksTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label11" runat="server" Text="Means of Verification"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="MeansOfVerificationTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine"
                    CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="MeansOfVerificationTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell></asp:TableCell>
            <asp:TableCell>
                <br />
                <div style="float:left;">
                    <asp:Button ID="SaveButton" runat="server" Text="Save" 
                        OnClick="SaveButton_Click" />
                </div>
                <div style="float:right;">
                    <asp:Button ID="CancelButton" runat="server" Text="Cancel" CausesValidation="false"
                         OnClick="CancelButton_Click" />
                </div>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>

</asp:Content>
